#ifndef STATUSBAR_H
#define STATUSBAR_H

#include <QtGui>


class StatusBar : public QWidget
{
    Q_OBJECT

public:
    StatusBar();



private:

protected:
    void refreshInfo();

    QGridLayout* _layout;
    QLabel* _vertLabel;
    QLabel* _faceLabel;
    QLabel* _edgeLabel;
	
    QLabel* _vertTotLabel;
    QLabel* _faceTotLabel;
    QLabel* _edgeTotLabel;

    QLabel* _timeLabel;
    QLabel* _v;
    QLabel* _f;
    QLabel* _e;

	QLabel* _vt;
    QLabel* _ft;
    QLabel* _et;

    QLabel* _t;
    unsigned int _vert;
    unsigned int _face;
    unsigned int _edge;
    unsigned int _vert_total;
    unsigned int _face_total;
    unsigned int _edge_total;

    unsigned int _time;

    bool _load;

signals:

public slots:
    inline void setInfo(const unsigned int v, const unsigned int f, const unsigned int t)
    {
        _vert = v;
        _face = f;
        _edge = (3 * _face) / 2;

		_vert_total += v;
		_face_total += f;
		_edge_total += _edge;

        _time = t;

        _load = true;

        refreshInfo();
    }
    inline void Reset()
    {
        _vert = 0;
        _face = 0;
        _edge = 0;
        _time = 0;
		_vert_total = 0;
		_face_total = 0;
		_edge_total = 0;
        _load = false;

        refreshInfo();
    }

private slots:

};

#endif // STATUSBAR_H
